import { ApiProperty, OmitType, PartialType } from "@nestjs/swagger";
import { CreateKitDto } from "./create-kit.dto";

export class QueryDto extends OmitType(PartialType(CreateKitDto),['content','description']) {
  @ApiProperty(
    {
      description: '页码',
      type: Number,
      default: 1,
      required: false
    }
  )  
  pageNum: number;
  @ApiProperty(
    {
      description: '每页数量',
      type: Number,
      default: 10,
      required: false
    }
  )
  pageSize: number;    
  @ApiProperty(
    {
        description: 'The page keywords',
        example: '关键词',
        required: false
    }
)
keywords?: string;
}